efform_onload = function ()
{
};  

button_query_onclick = function (){
	efgrid.submitInqu( "ef_grid_result", "ZM","ZMCH50","query");
}

//点击新增按钮
button_insert_onclick = function (){
	var grid=isSelected("ef_grid_result");
	if (grid == 0)return; 
	
	efgrid.submitForm( "ef_grid_result", "ZM", "ZMCH50", "insert", true);
}

//点击修改按钮
button_update_onclick = function (){
	var grid=isSelected("ef_grid_result");
	if (grid == 0)return; 
	
	efgrid.submitForm( "ef_grid_result", "ZM", "ZMCH50", "update", true);
}

//点击删除按钮
button_delete_onclick = function (){
	var grid=isSelected("ef_grid_result");
	if (grid == 0)return; 
	
	efgrid.submitForm( "ef_grid_result", "ZM", "ZMCH50", "delete", true);
} 

efgrid_afterAddNewRow = function(grid_id) {
	var grid = efgrid.getGridObject(grid_id);
	var rows = grid.getCheckedRows();
	if (grid_id == "ef_grid_result") {
		for (var i = 0; i < rows.length; i++) {
			grid.getBlockData().setCell(rows[i], "fdKeyId", "");
		}
	}
}